import React from "react"
import { connect } from "react-redux"
class ReactX0101 extends React.Component {
    render() {
        return (

            <div>
                <p>获取store 中的数据</p>
                {this.props.number}
            </div>

        )
    }
}
//读数据的方法
const mapStateToprops = (state) => {
    return {
        number: state
    }
}
//高级组建
export default connect(mapStateToprops)(ReactX0101) 